<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Welcome extends MY_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see https://codeigniter.com/user_guide/general/urls.html
	 */
	public function index()
	{
		//获取微信API信息
		/*$this->load->model('Syswxconfig_model');
		$wx_config = $this->Syswxconfig_model->get_wxconfig();

		require_once "third_party/wxjsapi/jssdk.php";
		$jssdk = new JSSDK($wx_config['appid'], $wx_config['appsecret'], $this->school_id);
		$signPackage = $jssdk->GetSignPackage();
		$this->smarty->assign("signPackage", $signPackage);*/

		// print_r($signPackage);exit;


		$this->smarty->assign("logged_in",$this->logged_in);

		$this->smarty->assign("menu", "home");
		// $this->smarty->assign("user_data", $this->user_data);
		$this->smarty->display("index.html");
	}


}
